﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="mmUI.Windows.SettingsWindow"
        Title="MovieManager :: Settings" Loaded="Window_Loaded" Height="337" Width="331" ResizeMode="NoResize" Icon="/mmUI;component/icons/settings.png" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen">
    <Grid>
    	<GroupBox Header="Provider settings" Margin="8,8,8,0" Height="146" VerticalAlignment="Top">
    		<Grid>
    			<Label Content="Google username:" HorizontalAlignment="Left" Margin="7.999,8,0,0" VerticalAlignment="Top"/>
                <TextBox Margin="118.273,10,8,0" TextWrapping="Wrap" RenderTransformOrigin="1.823,-3.051" Text="{Binding GoogleUserId}" IsEnabled="{Binding UseGoogleAccount}" VerticalAlignment="Top"/>
                <Label Content="Password:" HorizontalAlignment="Left" Margin="51.716,31.96,0,28.12" d:LayoutOverrides="Height"/>
                <PasswordBox x:Name="_mPassword" Margin="118.273,35.96,8,0" Height="21.8" PasswordChanged="PasswordBox_PasswordChanged" IsEnabled="{Binding PasswordEnabled}" VerticalAlignment="Top"/>
                <CheckBox Content="Remember password" Margin="118.273,0,8.001,42.32" VerticalAlignment="Bottom" IsChecked="{Binding RememberPassword}" Background="#FFFFF6F6" Foreground="#FFBA0808"/>
                <CheckBox Content="Use google account to store data" Margin="7.999,0,8.001,8" IsChecked="{Binding UseGoogleAccount}" Height="18.08" VerticalAlignment="Bottom" />
    		</Grid>
    	</GroupBox>
    	<GroupBox Header="Preferences" Margin="8,0,8,101" VerticalAlignment="Bottom" Height="55">
    		<CheckBox Content="Show program updates notifications" Margin="4,8,-4,-14.96" IsChecked="{Binding ShowUpdatesNotifications}"/>
    	</GroupBox>
    	<GroupBox Header="Extensions options" Margin="8,0,8,8" VerticalAlignment="Bottom" Height="89">
    		<Grid>
    			<Label Content="JDownloader location:" HorizontalAlignment="Left" Margin="0.983,32.08,0,8" d:LayoutOverrides="Height"/>
    			<Label HorizontalAlignment="Left" VerticalAlignment="Top" Content="Filestube argument:" Margin="13.276,4,0,0"/>
                <TextBox Margin="132,8,8,0" TextWrapping="NoWrap"  VerticalAlignment="Top" Text="{Binding FilesTubeArgument}" />
                <TextBox Margin="132,0,37.446,8" TextWrapping="NoWrap"  VerticalAlignment="Bottom" Text="{Binding JdownloaderLocation}" />
                <Button Content="..." Command="{Binding BrowseForJdownloader}" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="25.446"/>
    		</Grid>
    	</GroupBox>
        
    </Grid>
</Window>
